package com.cskaoyan._03otherstream._02print;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/20 15:12
 **/
/*
自动刷新
 */
public class Demo4 {
    public static void main(String[] args) throws IOException {
        // 创建字符打印流对象
        PrintWriter printWriter = new PrintWriter(
                new FileWriter("a.txt"),true);
        // print
        // printWriter.print(1000);
        printWriter.println(10000);

        // flush
        // close
    }
}
